﻿using Microsoft.AspNetCore.Mvc;
using ZhCun.DBModel;
using ZhCun.RightsManage.AL;
using ZhCun.Utils;
using ZhCun.WebUtils.VModel;

namespace ZhCun.WebUtils.ApiControllers.RightsManage
{
    [ApiExplorerSettings(GroupName = "RightsManage")]
    public class ApiUserManage : BaseApiCrudController<UserManageBLL, ArgGetList, Sys_User, VSys_User>
    {
        /// <summary>
        /// 重置用户密码，默认密码为随机6位数字，请注意保存返回msg
        /// 参数示例：{"userId":"用户Id"}
        /// </summary>        
        [HttpPost]
        public ApiResult ResetPwd(dynamic arg)
        {
            string userId = arg.userId;
            return BLLObj.ResetPwd(userId);
        }
    }
}